/**
 * 
 */
package org.rollinitiative.d20.entity;

import org.rollinitiative.d20.schema.d20.GenderEnum;

/**
 * @author jmccormi
 *
 */
public enum Gender {

	Male,
	Female,
	Genderless;
	
	public static Gender mapGenderEnum (GenderEnum gender)
	{
		int genderVal = gender.enumValue().intValue();
		switch (genderVal) {
		case GenderEnum.INT_MALE:
			return Male;
		case GenderEnum.INT_FEMALE:
			return Female;
		case GenderEnum.INT_GENDERLESS:
			return Genderless;
		default:
			return Genderless;
		}
	}
}
